import request from '@/utils/request'

// 查询年检记录列表
export function listAnnualInspection(query) {
  return request({
    url: '/system/annualInspection/list',
    method: 'get',
    params: query
  })
}

// 查询年检记录详细
export function getAnnualInspection(id) {
  return request({
    url: '/system/annualInspection/' + id,
    method: 'get'
  })
}

// 新增年检记录
export function addAnnualInspection(data) {
  return request({
    url: '/system/annualInspection',
    method: 'post',
    data: data
  })
}

// 修改年检记录
export function updateAnnualInspection(data) {
  return request({
    url: '/system/annualInspection',
    method: 'put',
    data: data
  })
}

// 删除年检记录
export function delAnnualInspection(id) {
  return request({
    url: '/system/annualInspection/' + id,
    method: 'delete'
  })
}

// 导出年检记录
export function exportAnnualInspection(query) {
  return request({
    url: '/system/annualInspection/export',
    method: 'get',
    params: query
  })
}